<!DOCTYPE html>
<!--引入模板引擎-->
<html xmlns:th="http://www.thymeleaf.org">

<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>

<head>
    <meta charset="UTF-8">
    <title>修改信息</title>
</head>
<body>
<form action="" th:action="${student==null} ? @{/insUser} : @{/upUser}" method="post">
    <input id="id" name="id" hidden="hidden" th:value="${student?.id}">
    姓名：<input id="name" name="name" type="text" th:value="${student?.name}" ><br>
    性别：<input type="radio" class="sex"  name="sex" value="男" th:checked="${student?.sex=='男'}">男
    <input type="radio" class="sex"  name="sex" value="女" th:checked="${student?.sex=='女'}">女<br>
    年纪编号:
    <select name="gradeId" id="gradeId">
        <option value="1" th:selected="${student?.gradeId==1}">1</option>
        <option value="2" th:selected="${student?.gradeId==2}">2</option>
        <option value="3" th:selected="${student?.gradeId==3}">3</option>
    </select>年级<br>
    <input type="submit" value="确认添加">
</form>
</body>
</html>